#ifndef __THREAD_H__
#define __THREAD_H__

#include "pthread.h"

namespace Framework
{

    class Thread
    {
        public:
            virtual ~Thread();

        public:
            void startThread();
            void joinThread();

        protected:
            virtual void runThread() = 0;

        private:
            static void* dispatchThread(void*);

        private:
            pthread_t m_thread;
    };

}

#endif
